package com.isdepci.project.gasEmission.service.impl;

import java.util.List;


import com.isdepci.project.enterprise.domain.Enterprise;
import com.isdepci.project.enterprise.mapper.EnterpriseMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.isdepci.project.gasEmission.mapper.FuelUseMapper;
import com.isdepci.project.gasEmission.domain.FuelUse;
import com.isdepci.project.gasEmission.service.IFuelUseService;

/**
 * 现场燃料使用Service业务层处理
 *
 * @author isdepci
 * @date 2023-09-01
 */
@Service
public class FuelUseServiceImpl implements IFuelUseService
{
    @Autowired
    private FuelUseMapper fuelUseMapper;

    @Autowired
    private EnterpriseMapper enterpriseMapper;


    /**
     * 查询现场燃料使用
     */
    @Override
    public FuelUse selectFuelUseById(Long id)
    {
        return fuelUseMapper.selectFuelUseById(id);
    }

    /**
     * 查询现场燃料使用列表
     */
    @Override
    public List<FuelUse> selectFuelUseList(FuelUse fuelUse)
    {

        return fuelUseMapper.selectFuelUseList(fuelUse);
    }




    /**
     * 新增现场燃料使用
     */
    @Override
    public int insertFuelUse(FuelUse fuelUse) {

        return fuelUseMapper.insertFuelUse(fuelUse);
    }

    /**
     * 修改现场燃料使用
     */
    @Override
    public int updateFuelUse(FuelUse fuelUse)
    {
        return fuelUseMapper.updateFuelUse(fuelUse);
    }

    /**
     * 批量删除现场燃料使用
     */
    @Override
    public int deleteFuelUseByIds(Long[] ids)
    {
        return fuelUseMapper.deleteFuelUseByIds(ids);
    }

    /**
     * 删除现场燃料使用信息
     */
    @Override
    public int deleteFuelUseById(Long id)
    {
        return fuelUseMapper.deleteFuelUseById(id);
    }

//    @Override
//    public List<FuelUse> selectFuelUseInfoList(Long id, FuelUse fuelUse) {
//        System.out.println(id);
//        return null;
//    }


}
